<script type="text/javascript">
    app.controller('inputDialogCtrl',['$scope', '$uibModalInstance','data','httpWrapService','dialogs', function($scope,$uibModalInstance,data, httpWrapService,dialogs){
        $scope.data = data;
        $scope.cancel = function(){
            $uibModalInstance.dismiss('Canceled');
        }; // end cancel
        $scope.ok = function(){
            $uibModalInstance.close($scope.data.input);
        };
    }]);
</script>
<div class="modal-body wrapper-lg">
    <div class="row">
        <div>
            <h3 class="m-t-none m-b font-thin">{{data.title}}</h3>

            <p></p>
            <ng-form role="form" name="form" class="form-validation">
                <div class="form-group">
                    <label>{{data.label}}</label>
                    <input type="text" ng-model="data.input" ng-required="true" class="form-control" placeholder="请输入">
                </div>
                <div class="checkbox m-t-lg">
                    <button type="submit" class="btn btn-sm btn-black pull-right text-uc m-t-n-xs" ng-click="cancel()">
                        <strong>取消</strong></button>
                    <button type="submit" class="btn btn-sm btn-success pull-right text-uc m-t-n-xs"
                            ng-disabled="form.$invalid" ng-click="ok()"><strong>确认</strong></button>
                </div>
            </ng-form>
        </div>
    </div>
</div>

